package com.supermap.dataHandling;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by bruce on 18/9/30 -- 10:03
 */
public class JdkResources {
    public static void main(String[] args) {
        String str = "      a     ,b,c,,,";
        String[] array = str.replaceAll(" ", "").split(",");
        List list = Arrays.asList(array);
        List newList = new ArrayList(list);
        newList.add("tom");
        System.out.println(newList);
    }
}
